<?php
namespace swl\api\controller;

use s_vendor\Controller;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/29 0029
 * Time: 14:38
 */
class Test extends Controller {
    public function index() {
        $task_id = $this->swl_server->task('s_task\TestTask');
        echo '我先与task里面的打印出来，说明就异步了哈  TASK_ID' . $task_id . PHP_EOL;
        return "Task_ID: {$task_id}";
    }
}